<?php
	header("Content-type:text/html;charset=utf-8");
	include "Model.php";
	echo "<pre>";
	$connn =new Mysql('preferredshares','gljg');
    $sql = 'select uid as client_id ,name as management_name from gljg';
    $res =$connn->getAll($sql);
    $conn1 =  new Mysql('preferredshares','client_management'); 
	foreach ($res as $k =>$v){
        $data =array();
        $data['client_id']=$v['client_id'];
        $data['management_name']=$v['management_name'];
        $conn1->insert($data);
    }
    
    echo '<script>alert("插入数据库成功")</script>';
